package Day2_2;

public class Test {
    public static void main(String[] args) {
        //快递任务类对象
        Express express=new Express("225102050305",80);
        express.senBefore();//送货准备方法

        System.out.println("----------------------------------------------");
        //创建交通工具对象
        Truck t=new Truck("J1186","货车","村长");
        express.sendAfter(t);
        Tool tool=new Tool() {
            public void maintenance(){
                System.out.println("货车运输车辆保养完毕！");
            }
        };
        tool.maintenance();

        System.out.println("--------------------------------------");
    }
}
